#ifndef _CBTERMAPP_H_
#define _CBTERMAPP_H_

#include <buola/app/capp.h>
#include <buola/dbus/cobject.h>

#include "cmainwindow.h"

class CBTermApp : public CApp, public dbus::CObject<CBTermApp>
{
public:
    CBTermApp();
    ~CBTermApp();

    bool Activate();
    bool Start();

    void NewWindow();

public:
    template <class tIntrospector>
    static void Introspect(tIntrospector &pI)
    {
        pI.template AddMethod<void()>("NewWindow",&CBTermApp::NewWindow);
    }

protected:
    std::vector<PMainWindow> mWindows;
};

#endif
